

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
    <style>
    /* base */
    html,
    body,
    .container {
      width: 100%;
      height: 100%;
    }

    a,
    a:link,
    a:visited {
      text-decoration: none;
      color: inherit;
    }

    ul {
      list-style: none;
    }

    *,
    ::before,
    ::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    *:focus {
      outline: 0;
    }

    .container {
      display: flex;
      padding-top: 20px;
    }

    /* Nav */
    .container .doc-nav {
      position: fixed;
      height: 100%;
      margin: 0 30px 0 40px;
      width: 280px;
    }

    .doc-nav .nav-header {
      display: flex;
      align-items: center;
      box-sizing: border-box;
      background-color: rgb(240, 241, 242);
      height: 40px;
      padding: 16px;
      font-size: 18px;
      font-weight: 500;
      color: rgb(62, 64, 66);
      cursor: pointer;
    }

    .doc-nav .nav-content {
      height: calc(100% - 40px);
      overflow-y: auto;
      color: rgb(32, 34, 36);
    }

    .doc-nav .nav-content .nav-list,
    .doc-nav .nav-content .nav-sub-list {
      line-height: 1.5rem;
    }

    .doc-nav .nav-content .nav-label {
      display: inline-block;
      position: relative;
      padding: 2px 0 2px 20px;
      margin-bottom: 4px;
    }

    .doc-nav .nav-content .nav-sub-label {
      position: relative;
      padding: 2px 0 2px 40px;
      font-size: 14px;
    }

    .doc-nav .nav-content .nav-sub-label:hover {
      text-decoration: underline;
    }

    .doc-nav .nav-content .nav-list .nav-label.group::before {
      border-bottom: 0.25rem solid transparent;
      border-left: 0.25rem solid #6e7072;
      border-right: 0;
      border-top: 0.25rem solid transparent;
      content: '';
      display: block;
      height: 0;
      left: 0.5rem;
      position: absolute;
      top: 0.625rem;
      transition: transform 0.1s linear;
      width: 0;
    }

    .doc-nav .nav-content .nav-list .nav-label.group.active::before {
      transform: rotate(90deg);
    }

    /* doc content */
    .container .doc-content {
      position: fixed;
      height: 100%;
      width: calc(100% - 80px - 40px - 30px - 240px);
      right: 0%;
      overflow-y: auto;
    }

    .doc-title {
      border-bottom: 1px solid #dcdee0;
      font-size: 22px;
      margin: 8px 0 0;
      padding-bottom: 16px;
    }

    .doc-content h3 {
      font-size: 24px;
      font-weight: 600;
      margin: 24px 0;
    }

    .doc-content h4 {
      font-size: 22px;
      font-weight: 500;
      margin: 30px 0 8px;
    }

    .doc-content h4 span {
      color: #007d9c;
    }

    .doc-content .doc-declare {
      background-color: #fafafa;
      border-radius: 5px;
      border: 1px solid #ccc;
      font-size: 14px;
      overflow-x: auto;
      padding: 10px;
      tab-size: 4;
      line-height: 20px;
    }

    .doc-content .doc-comment {
      font-size: 16px;
      margin: 16px 0;
      line-height: 24px;
      word-break: break-word;
    }
  </style>

</head>
<body>
  <div class="container">
    <div class="doc-nav">
      <a href="#Documentation" class="nav-header">Documentation</a>
      <nav class="nav-content">
        <ul class="nav-list">
          <li>
            <a href="#includes" class="nav-label">Includes</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#tuya_ffs_config.h" class="nav-sub-label">tuya_ffs_config.h</a>
              </li>
      

              <li>
                <a href="#netcfg_module.h" class="nav-sub-label">netcfg_module.h</a>
              </li>
      

              <li>
                <a href="#string.h" class="nav-sub-label">string.h</a>
              </li>
      

              <li>
                <a href="#tuya_cloud_com_defs.h" class="nav-sub-label">tuya_cloud_com_defs.h</a>
              </li>
      

              <li>
                <a href="#tuya_cloud_types.h" class="nav-sub-label">tuya_cloud_types.h</a>
              </li>
      

              <li>
                <a href="#http_inf.h" class="nav-sub-label">http_inf.h</a>
              </li>
      

              <li>
                <a href="#ty_cJSON.h" class="nav-sub-label">ty_cJSON.h</a>
              </li>
      

              <li>
                <a href="#tuya_hal_system.h" class="nav-sub-label">tuya_hal_system.h</a>
              </li>
      

              <li>
                <a href="#tuya_hal_thread.h" class="nav-sub-label">tuya_hal_thread.h</a>
              </li>
      

              <li>
                <a href="#tuya_hal_wifi.h" class="nav-sub-label">tuya_hal_wifi.h</a>
              </li>
      

              <li>
                <a href="#uni_thread.h" class="nav-sub-label">uni_thread.h</a>
              </li>
      

              <li>
                <a href="#uni_log.h" class="nav-sub-label">uni_log.h</a>
              </li>
      

              <li>
                <a href="#http_inf.h" class="nav-sub-label">http_inf.h</a>
              </li>
      

              <li>
                <a href="#tuya_tls.h" class="nav-sub-label">tuya_tls.h</a>
              </li>
      

              <li>
                <a href="#mem_pool.h" class="nav-sub-label">mem_pool.h</a>
              </li>
      

              <li>
                <a href="#openssl/evp.h" class="nav-sub-label">openssl/evp.h</a>
              </li>
      

              <li>
                <a href="#openssl/hmac.h" class="nav-sub-label">openssl/hmac.h</a>
              </li>
      

              <li>
                <a href="#openssl/sha.h" class="nav-sub-label">openssl/sha.h</a>
              </li>
      

              <li>
                <a href="#mbedtls/md.h" class="nav-sub-label">mbedtls/md.h</a>
              </li>
      

              <li>
                <a href="#mbedtls/ecdh.h" class="nav-sub-label">mbedtls/ecdh.h</a>
              </li>
      

              <li>
                <a href="#mbedtls/ctr_drbg.h" class="nav-sub-label">mbedtls/ctr_drbg.h</a>
              </li>
      

              <li>
                <a href="#mbedtls/sha256.h" class="nav-sub-label">mbedtls/sha256.h</a>
              </li>
      

              <li>
                <a href="#mbedtls/base64.h" class="nav-sub-label">mbedtls/base64.h</a>
              </li>
      

              <li>
                <a href="#mbedtls/pk.h" class="nav-sub-label">mbedtls/pk.h</a>
              </li>
      
            </ul>
            
          </li>
          <li>
            <a href="#macros" class="nav-label">Macros</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#__TUYA_FFS_INC_H__" class="nav-sub-label">__TUYA_FFS_INC_H__</a>
              </li>
      
            </ul>
            
          </li>
          <li>
            <a href="#functions" class="nav-label">Functions</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#vars" class="nav-label">Vars</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#consts" class="nav-label">Consts</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#types" class="nav-label">Types</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#typedefs" class="nav-label">Typedefs</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#tuya_ffs_config_t;
" class="nav-sub-label">tuya_ffs_config_t;
</a>
              </li>
      
            </ul>
            
          </li>
        </ul>
      </nav>
    </div>
    <div class="doc-content">
      <h2 id="Documentation" class="doc-title">Documentation</h2>
      <h3 id="includes">Includes</h3>
      

      <h4 id="tuya_ffs_config.h"><span>tuya_ffs_config.h</span></h4>
      <pre class="doc-declare"><code>#include "tuya_ffs_config.h"
</code></pre>
      <pre class="doc-comment">#include "tuya_ffs_config.h"
</pre>

      <h4 id="netcfg_module.h"><span>netcfg_module.h</span></h4>
      <pre class="doc-declare"><code>#include "netcfg_module.h"
</code></pre>
      <pre class="doc-comment">#include "netcfg_module.h"
</pre>

      <h4 id="string.h"><span>string.h</span></h4>
      <pre class="doc-declare"><code>#include &lt;string.h&gt;
</code></pre>
      <pre class="doc-comment">#include <string.h>
</pre>

      <h4 id="tuya_cloud_com_defs.h"><span>tuya_cloud_com_defs.h</span></h4>
      <pre class="doc-declare"><code>#include "tuya_cloud_com_defs.h"
</code></pre>
      <pre class="doc-comment">#include "tuya_cloud_com_defs.h"
</pre>

      <h4 id="tuya_cloud_types.h"><span>tuya_cloud_types.h</span></h4>
      <pre class="doc-declare"><code>#include "tuya_cloud_types.h"
</code></pre>
      <pre class="doc-comment">#include "tuya_cloud_types.h"
</pre>

      <h4 id="http_inf.h"><span>http_inf.h</span></h4>
      <pre class="doc-declare"><code>#include "http_inf.h"
</code></pre>
      <pre class="doc-comment">#include "http_inf.h"
</pre>

      <h4 id="ty_cJSON.h"><span>ty_cJSON.h</span></h4>
      <pre class="doc-declare"><code>#include "ty_cJSON.h"
</code></pre>
      <pre class="doc-comment">#include "ty_cJSON.h"
</pre>

      <h4 id="tuya_hal_system.h"><span>tuya_hal_system.h</span></h4>
      <pre class="doc-declare"><code>#include "tuya_hal_system.h"
</code></pre>
      <pre class="doc-comment">#include "tuya_hal_system.h"
</pre>

      <h4 id="tuya_hal_thread.h"><span>tuya_hal_thread.h</span></h4>
      <pre class="doc-declare"><code>#include "tuya_hal_thread.h"
</code></pre>
      <pre class="doc-comment">#include "tuya_hal_thread.h"
</pre>

      <h4 id="tuya_hal_wifi.h"><span>tuya_hal_wifi.h</span></h4>
      <pre class="doc-declare"><code>#include "tuya_hal_wifi.h"
</code></pre>
      <pre class="doc-comment">#include "tuya_hal_wifi.h"
</pre>

      <h4 id="uni_thread.h"><span>uni_thread.h</span></h4>
      <pre class="doc-declare"><code>#include "uni_thread.h"
</code></pre>
      <pre class="doc-comment">#include "uni_thread.h"
</pre>

      <h4 id="uni_log.h"><span>uni_log.h</span></h4>
      <pre class="doc-declare"><code>#include "uni_log.h"
</code></pre>
      <pre class="doc-comment">#include "uni_log.h"
</pre>

      <h4 id="http_inf.h"><span>http_inf.h</span></h4>
      <pre class="doc-declare"><code>#include "http_inf.h"
</code></pre>
      <pre class="doc-comment">#include "http_inf.h"
</pre>

      <h4 id="tuya_tls.h"><span>tuya_tls.h</span></h4>
      <pre class="doc-declare"><code>#include "tuya_tls.h"
</code></pre>
      <pre class="doc-comment">#include "tuya_tls.h"
</pre>

      <h4 id="mem_pool.h"><span>mem_pool.h</span></h4>
      <pre class="doc-declare"><code>#include "mem_pool.h"
</code></pre>
      <pre class="doc-comment">#include "mem_pool.h"
</pre>

      <h4 id="openssl/evp.h"><span>openssl/evp.h</span></h4>
      <pre class="doc-declare"><code>#include &lt;openssl/evp.h&gt;
</code></pre>
      <pre class="doc-comment">#include <openssl/evp.h>
</pre>

      <h4 id="openssl/hmac.h"><span>openssl/hmac.h</span></h4>
      <pre class="doc-declare"><code>#include &lt;openssl/hmac.h&gt;
</code></pre>
      <pre class="doc-comment">#include <openssl/hmac.h>
</pre>

      <h4 id="openssl/sha.h"><span>openssl/sha.h</span></h4>
      <pre class="doc-declare"><code>#include &lt;openssl/sha.h&gt;
</code></pre>
      <pre class="doc-comment">#include <openssl/sha.h>
</pre>

      <h4 id="mbedtls/md.h"><span>mbedtls/md.h</span></h4>
      <pre class="doc-declare"><code>#include "mbedtls/md.h"
</code></pre>
      <pre class="doc-comment">#include "mbedtls/md.h"
</pre>

      <h4 id="mbedtls/ecdh.h"><span>mbedtls/ecdh.h</span></h4>
      <pre class="doc-declare"><code>#include "mbedtls/ecdh.h"
</code></pre>
      <pre class="doc-comment">#include "mbedtls/ecdh.h"
</pre>

      <h4 id="mbedtls/ctr_drbg.h"><span>mbedtls/ctr_drbg.h</span></h4>
      <pre class="doc-declare"><code>#include "mbedtls/ctr_drbg.h"
</code></pre>
      <pre class="doc-comment">#include "mbedtls/ctr_drbg.h"
</pre>

      <h4 id="mbedtls/sha256.h"><span>mbedtls/sha256.h</span></h4>
      <pre class="doc-declare"><code>#include "mbedtls/sha256.h"
</code></pre>
      <pre class="doc-comment">#include "mbedtls/sha256.h"
</pre>

      <h4 id="mbedtls/base64.h"><span>mbedtls/base64.h</span></h4>
      <pre class="doc-declare"><code>#include "mbedtls/base64.h"
</code></pre>
      <pre class="doc-comment">#include "mbedtls/base64.h"
</pre>

      <h4 id="mbedtls/pk.h"><span>mbedtls/pk.h</span></h4>
      <pre class="doc-declare"><code>#include "mbedtls/pk.h"
</code></pre>
      <pre class="doc-comment">#include "mbedtls/pk.h"
</pre>
      <h3 id="macros">Macros</h3>
      

      <h4 id="__TUYA_FFS_INC_H__">Marco <span>__TUYA_FFS_INC_H__</span></h4>
      <pre class="doc-declare"><code>#define __TUYA_FFS_INC_H__
</code></pre>
      <pre class="doc-comment"></pre>
      <h3 id="functions">Functions</h3>
      
      <h3 id="vars">Vars</h3>
      
      <h3 id="consts">Consts</h3>
      
      <h3 id="types">Types</h3>
      
      <h3 id="typedefs">Typedefs</h3>
      

      <h4 id="tuya_ffs_config_t;
">Typedef <span>tuya_ffs_config_t;
</span></h4>
      <pre class="doc-declare"><code>typedef struct {
   char* pid;         // the length is 4, ref TEST_PRODUCT_INDEX "Q9pp"
   char* pin;
   char* sn;
   char* cert_pem;
   char* private_pem;
   char* public_pem;
 int netcfg_type;
}tuya_ffs_config_t;
</code></pre>
      <pre class="doc-comment"></pre>
    </div>
  </body>
</html>
            